package com.funnycenter.controllers;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;

import com.funnycenter.dao.TestDAO;

import net.paoding.rose.web.Invocation;

public class HelloController {
	
	@Autowired
	 private  TestDAO testDAO;

    public String world(Invocation inv) {
        inv.addModel("now", new Date());
        String a=testDAO.getTest();
        
        System.out.println(a);
        return "hello-world";
    }
}